package com.everyline.lib_common.net

import com.everyline.lib_base.network.BaseResult
import com.everyline.lib_common.bean.AppVersionBean
import com.everyline.lib_common.bean.UserInfoBean
import retrofit2.http.FieldMap
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

/**
 * Created by on 2021/2/26.
 * 天天挂线
 *  746608431@qq.com
 *  描述:TODO
 */

interface ApiService {

    //获取版本详情
    @FormUrlEncoded
    @POST("common/getAppVersion")
    suspend fun getAppVersion(@FieldMap map: Map<String, String>): BaseResult<AppVersionBean>

    //获取短信验证码
    @FormUrlEncoded
    @POST("common/sendSmsCode")
    suspend fun sendSmsCode(@FieldMap map: Map<String, String>): BaseResult<String>

    //司机验证码登录
    @FormUrlEncoded
    @POST("taxi/app/zc/driver/base/driverLoginByMobile")
    suspend fun driverLoginByMobile(@FieldMap map: Map<String, String>): BaseResult<UserInfoBean>
}